#include<bits/stdc++.h>
using namespace std;
int arr[306];
int solve() {
  int n;cin>>n;
  for(int i=0;i<n;++i) cin>>arr[i];
  bool odd = true;
  for(auto it=arr,ed=arr+n;it!=ed;) {
    if(odd) cout<<*it++<<" ";
    else cout<<*--ed<<" ";
    odd = !odd;
  }
  cout<<"\n";
  return 0;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  //freopen("in.txt","r",stdin);
  // freopen("out.txt","w",stdout);
  int tc; cin>>tc;
  for(int t = 1; t <= tc; t++) {
    // cout << "Case #" << t << ": \n"
    solve();
  }
  return 0;
}
